/**
 * 项目属性菜单
 */
Ext.namespace('Ext.ux');

Ext.ux.ProjectTree = Ext.extend(Ext.tree.AsyncTreeNode, {

	type : false

	, parentPath : false

    // private
    , initComponent : function(){
    	Ext.apply(this, {
            type : "file",
            path : ""
        });
        Ext.ux.ProjectTree.superclass.initComponent.apply(this, arguments);
		//Ext.ux.ProjectTree.superclass.initComponent.call(this);
	}

    , onRender : function(ct, position){
        Ext.ux.ProjectTree.superclass.onRender.call(this, ct, position);
	}

	, afterRender : function(){
        Ext.ux.ProjectTree.superclass.afterRender.call(this);
    }
    
    , getType : function() {
    	this.type;
    }
    
    , setType : function(type) {
    	this.type = type;
    }
    
    , getParentPath : function() {
    	this.parentPath;
    }
    
    , setParentPath : function(path) {
    	this.parentPath = path;
    }
    
    , getNodeName : function() {
    	this.attributes.text;
    }
    
});

Ext.reg('projectTree', Ext.tree.TreeNode);